package com.ny.demo;

public class Test {
    public static void main(String[] args) {

        Insurance carInsurance = new CarInsurance(200000, 1);
        // 创建家庭基本险实例
        Insurance homeInsurance = new HomeInsurance(500000, 120);

        System.out.println("车险保费: " + carInsurance.calculatePremium());
        System.out.println("家庭基本险保费: " + homeInsurance.calculatePremium());
    }
}
